use std::io;
use std::rand;


static dict: &'static str = "1234567890abcdefghijklmnopqrstuvwxyz(){}_+-&%$?><,.[]|/";

fn main() {
    for line in io::stdin().lines() {
        print!("{}", line.unwrap().replace("<passwd>", genpasswd(dict, 8).as_slice()));
    }
}

fn genpasswd<'a, T: StrSlice<'a>>(d: T, n: uint) -> String {
    let mut code = String::with_capacity(n);
    let mut rng = rand::OsRng::new().unwrap();

    for &i in rand::sample(&mut rng, range(0, d.char_len()), n).iter() {
        code.push_char(d.char_at(i));
    }

    code
}
